package com.atguigu.yygh.common.result;

/**
 * @author mgx
 * @version 1.0
 * @description: TODO
 * @date 2022/8/21 11:41
 */
public enum REnum {
    SUCCESS(20000, true, "成功"),
    ERROR(20001, false, "失败")
    ;
    private Integer code;
    private Boolean success;
    private String message;

    REnum(Integer code, Boolean success, String message) {
        this.code = code;
        this.success = success;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public Boolean getSuccess() {
        return success;
    }

    public String getMessage() {
        return message;
    }
}
